package com.persistence;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * The persistent class for the t_captain database table.
 * 
 */
@Entity
@Table(name="t_captain")
public class TCaptain implements Serializable {
	private static final long serialVersionUID = 1L;
	private int playerId;
	private int teamId;

	@Column(name="team_Id")
    public int getTeamId() {
		return teamId;
	}

	public void setTeamId(int teamId) {
		this.teamId = teamId;
	}

	public TCaptain() {
    }

    @Id
	@Column(name="player_id")
	public int getPlayerId() {
		return this.playerId;
	}

	public void setPlayerId(int playerId) {
		this.playerId = playerId;
	}



	
}